<template>
  <el-tabs>
    <el-tab-pane label="状态" name="first">
      <status></status>
    </el-tab-pane>
    <el-tab-pane label="信息" name="second"><info></info></el-tab-pane>
    <el-tab-pane label="历史" name="third">
      <history></history>
    </el-tab-pane>
    <el-tab-pane label="历程" name="fourth">
      <course></course>
    </el-tab-pane>
    <el-tab-pane label="事件" name="fifth">
      <event></event>
    </el-tab-pane>
    <el-tab-pane label="故障" name="sixth">
      <error></error>
    </el-tab-pane>
    <el-tab-pane label="告警" name="sventh">
      <alarm></alarm>
    </el-tab-pane>
    <el-tab-pane label="采集" name="eighth">
      <gather></gather>
    </el-tab-pane>
    <el-tab-pane label="控制" name="ninth">
      <control></control>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import status from "./status";
import info from "./info";
import history from "./history";
import course from "./course";
import event from "./event";
import error from "./error";
import alarm from './alarm';
import gather from './gather'
import control from './control';
export default {
  components: {
    status,
    info,
    history,
    course,
    event,
    error,
    alarm,
    gather,
    control
  },
  data() {
    return {
      baseInfo: {
        name: "test123",
        // status: "",
        pfuel: "",
        electric: "",
        water: "",
        gas: "",
        fuel: "",
        nelectric: "",
        client: "客户01",
        time: "2021-04-10 20:00",
        details: {
          status: {
            status: "运行",
            gasdivideele: 0.906,
            pressure: 0.6209,
            power: 161,
            cflow: 1348.5452,
            mflow: 280427,
            melectric: 27540.421,
            msave: 5521.35,
            devices: [
              [
                { label: "1#流量计", value: "运行" },
                {
                  label: "瞬时流量",
                  value: 1358.5452,
                  unit: "Nm3/h",
                },
                {
                  label: "累计流量",
                  value: 2436272,
                  unit: "Nm3",
                },
                {
                  label: "压力",
                  value: 0.6209,
                  unit: "Mpa",
                },
              ],
              [
                { label: "1#空压机", value: "运行" },
                {
                  label: "供气压力",
                  value: 1358.5452,
                  unit: "Mpa",
                },
                {
                  label: "排气温度",
                  value: "78°C",
                  unit: "°C",
                },
                {
                  label: "油分压差",
                  value: 0.0143,
                  unit: "Mpa",
                },
              ],
              [
                { label: "1#变频器", value: "运行" },
                {
                  label: "运行频率",
                  value: 19,
                  unit: "Hz",
                },
                {
                  label: "输出功率",
                  value: "29",
                  unit: "Kw",
                },
                {
                  label: "PID反馈值",
                  value: 25.7,
                },
              ],
              [
                { label: "1#电能表", value: "运行" },
                {
                  label: "功率",
                  value: 161,
                  unit: "Kw",
                },
                {
                  label: "电量",
                  value: "1734250.6",
                  unit: "Kw·h",
                },
                {
                  label: "表号",
                  value: "000000364398",
                },
              ],
            ],
          },
        },
      },
    };
  },
};
</script>

<style>
</style>